﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Hospital.BLL.IBLL;
using Hospital.Model;
using System.Data;

namespace Hospital.Web
{
    public partial class _Default : System.Web.UI.Page
    {
        private IUserService userService;

        public IUserService UserService
        {
            set { userService = value; }
            get { return userService; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            IList<User> userList = userService.GetAllUsers();
            DataTable dt = userService.GetAllUser();
            Response.Write(dt.Rows.Count);
        }
    }
}
